<template>
<!--开平产品对照表-->
  <div>
    <div class="account-big-type-box">
      <div style="display: flex;padding-left: 15px;padding-top: 11px;height: 30px" >
        <a  href="#">
          <div style="display: flex"  >
            <i class="icon-xinxiduizhao" style="margin-top: 4px;margin-right: 5px;margin-left: 5px"></i>
            <h3>开平产品对照表&nbsp;&nbsp;&nbsp;</h3>
          </div>
        </a>
      </div>
        <div class="account-big-type-box-detail">
          <el-table
            v-loading="loading"
            element-loading-text="已经很努力加载了(•́へ•́╬)"
            element-loading-spinner="el-icon-loading"
            element-loading-background="rgba(0, 0, 0, 0.8)"
            :data="dataList"
            style="width: 100%"
            height="552"
          >

            <el-table-column
              label="卷板名称"
              align="center"
              width="500">
              <template slot-scope="scope">
                <el-tag effect="dark"><span  style="font-weight: bold;font-size: 16px">{{scope.row.small_type_name}}</span></el-tag>
              </template>
            </el-table-column>
            <el-table-column

              align="center"
            >

              <template slot-scope="scope">
                <img src="../../assets/comparisonJianTou.png" style="width: 100px;height: 30px" alt="">
              </template>
            </el-table-column>
            <el-table-column
              label="平板名称"
              align="center"
              width="500">
              <template slot-scope="scope">
                <el-tag effect="dark" type="danger">  <span  style="font-weight: bold;font-size: 16px">{{scope.row.pingBanName}}</span></el-tag>
              </template>
            </el-table-column>
          </el-table>

        </div>
    </div>
  </div>
</template>

<script>
import {get} from "../../utils/request";
import {BIG_TYPE_DATA} from "../../utils/basic-data";

export default {
  name: "KaiPingComparison",
  data(){
    return{
      dataList:[],
      loading:true,
    }
  },
  created() {
    get('/api/v1/comparison/showAll').then(resp=>{
      this.dataList=resp.data
      this.loading=false
    })

  },
  mounted() {

  },
  methods:{
  }

}
</script>

<style scoped>
.el-table .warning-row {
  background: oldlace;
}

.el-table .success-row {
  background: #f0f9eb;
}
.account-big-type-box-detail{
  padding-top: 20px;
  width: 1260px;
  margin-left: 15px;
  height: 570px;
  padding-bottom: 30px;
  border-radius: 20px;
  background-color: #f2f2f2;
  overflow: hidden;
  overflow-y: visible;
}
a{
  text-decoration: none;
  color: #2c3e50;
}
h3{
  margin: 0;
}
.account-big-type-box{
  height: 674px;

  margin-top: 10px;
  width: 1290px;
  background-color: white;
  border-radius: 30px;
  box-shadow:  20px 20px 60px #bebebe,
  -20px -20px 60px #ffffff;
}
</style>
